/// CreateTime 2020/5/13 17:55
/// CreateUser chen 
/// ProjectName flutter_elf
import 'package:flutter_elf/config/component_index.dart';

class MyRouteObserver extends NavigatorObserver {

  @override
  void didPush(Route route, Route previousRoute) {
    // TODO: implement didPush
//    globalPrint('RouteObserver didPush route1======>' + route.settings.name);
//    globalPrint('RouteObserver previousRoute======>' + previousRoute.settings.name);
    super.didPush(route, previousRoute);
  }

  @override
  void didPop(Route route, Route previousRoute) {
//    globalPrint('RouteObserver didPop route2======>' + route.settings.name);
//    globalPrint('RouteObserver didPop previousRoute======>' + previousRoute.settings.name);
    // TODO: implement didPop
    super.didPop(route, previousRoute);
  }

  @override
  void didRemove(Route route, Route previousRoute) {
    // TODO: implement didRemove
//    globalPrint('RouteObserver didRemove route2======>' + route.settings.name);
    super.didRemove(route, previousRoute);
  }

  @override
  void didReplace({Route newRoute, Route oldRoute}) {
    // TODO: implement didReplace
//    globalPrint('RouteObserver didReplace route2======>' + oldRoute.settings.name);
    super.didReplace(newRoute:newRoute, oldRoute:oldRoute);
  }

  @override
  void didStartUserGesture(Route route, Route previousRoute) {
    // TODO: implement didStartUserGesture
//    globalPrint('RouteObserver didStartUserGesture route2======>' + route.settings.name);
    super.didStartUserGesture(route, previousRoute);
  }

  @override
  void didStopUserGesture() {
//    globalPrint('RouteObserver didStopUserGesture route2======>');
    // TODO: implement didStopUserGesture
    super.didStopUserGesture();
  }


}